#include "Dialog.h"

#include <QApplication>
#include <qlabel.h>
#include <qpushbutton.h>
#include "../../DebugTools/DebugTool.h"

QString fileName_Qss = "stylesheet.qss";

void showDialog(Dialog *w){

  QStringList ret = w->getItemText ();
  if( ret.count () )
    cout << ret;
}


int main(int argc, char *argv[])
{
  QApplication a(argc, argv);

  QPushButton label("txt");
  label.show ();

  loadQssFile ();
  watchQssFile ();
  addShortcut (&label);
  Dialog w;
  QObject::connect ( &label, &QPushButton::clicked, [&]{
    showDialog (&w);
  });

  return a.exec();
}
